package org.example.l2;

import com.alibaba.fastjson2.JSON;
import lombok.Getter;
import lombok.Setter;

public class IntHelper {

    @Setter
    @Getter
    int[][] grid;

    public static int[][] from(String text) {
        text = "{\"grid\":" + text + "}";
        IntHelper charHelper = JSON.parseObject(text, IntHelper.class);
        return charHelper.grid;
    }
}
